CPP=g++
WCPP=g++
CPPFLAGS=-Wall -O2 -pthread -D_REENTRANT
LIBFLAGS=-lboost_regex-mt -lboost_thread-mt -lboost_program_options-mt -lboost_date_time-mt
WCPPFLAGS=-Wall -O2 -D_REENTRANT -DWIN32
WLIBFLAGS=-L/mingw/lib/
# CPPFLAGS=-Wall -march=i686 -pthread -D_REENTRANT

OBJHS=$(wildcard *.hpp)
OBJS=$(OBJHS:.hpp=.o)

all default: fcproxy
fcproxy:  main.o $(OBJS)
	$(CPP) $(CFLAGS) $(CPPFLAGS) $(LIBFLAGS) $^ -o $@

main.o: main.cpp
	$(CPP) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

%.o:%.cpp %.hpp
	$(CPP) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

.PHONY : clean
clean:
	rm -f *.o sproxy
